<template>
  <el-dialog title="日志浏览" v-model="visible" :width="800" destroy-on-close @closed="$emit('closed')">
    
	<pre style="word-break: break-all; white-space: pre-wrap; ">{{ content }}</pre>

  </el-dialog>
</template>

<script>
    import setting from './setting'
	export default {
		emits: ['success', 'closed'],
		components: {
		},
		data() {
			return {
				mode: "add",
				visible: false,
				isSaveing: false,
				content: "Loading ... ",
				data: null
			}
		},
		mounted() {
		},
		methods: {
			//显示
			open(){
				this.visible = true;
				return this
			},
			//
			async load(){
				let d = { id: this.data.id }
				var res = await setting.api.view.get(d);
				this.content = res
			},
			//表单提交方法
			submit(){			
			},
			//表单注入数据
			setData(data){
				this.data = data
				this.load()
			}
		}
	}
</script>

<style>
</style>
